class CreateTasks < ActiveRecord::Migration
  def self.up
    create_table :tasks, :options => "ENGINE=NDBCLUSTER"  do |t|
    t.integer :owner_id
    t.string :name
    t.text :instructions
    t.datetime :run_through
    t.datetime :due_date
    t.auto_dates
    t.integer :task_status_id
    t.integer :task_kind_id
    t.integer :user_id
    t.integer :project_id
    end
  end

  def self.down
    drop_table :tasks
  end
end
